﻿#ifndef _PLUGIN_EXPORT_H
#define _PLUGIN_EXPORT_H

#include "global.h"

#ifdef __cplusplus
extern "C" {
// #ifdef __cplusplus
#endif

#define DECLSPEC_EXPORT __declspec(dllexport)

DECLSPEC_EXPORT int LoadingInfo(int session);
DECLSPEC_EXPORT int EventInit(char* path);
DECLSPEC_EXPORT int EventEnable();
DECLSPEC_EXPORT int EventStop(int type);
DECLSPEC_EXPORT int EventLogin(LPCSTR robot_wxid, LPCSTR robot_name, int type, LPCSTR msg);
DECLSPEC_EXPORT int EventGroupMsg(LPCSTR robot_wxid, int type, LPCSTR from_wxid, LPCSTR from_name,
                                  LPCSTR final_from_wxid, LPCSTR final_from_name, LPCSTR to_wxid, LPCSTR msg);
DECLSPEC_EXPORT int EventFriendMsg(LPCSTR robot_wxid, int type, LPCSTR from_wxid, LPCSTR from_name,
                                   LPCSTR to_wxid, LPCSTR msg);
DECLSPEC_EXPORT int EventReceivedTransfer(LPCSTR robot_wxid, LPCSTR from_wxid, LPCSTR from_name,
                                          LPCSTR to_wxid, LPCSTR money, LPCSTR json_msg);

DECLSPEC_EXPORT int EventScanCashMoney(LPCSTR robot_wxid, LPCSTR pay_wxid, LPCSTR pay_name, LPCSTR money,
                                       LPCSTR json_msg);

DECLSPEC_EXPORT int EventFriendVerify(LPCSTR robot_wxid, LPCSTR from_wxid, LPCSTR from_name, LPCSTR to_wxid,
                                      LPCSTR json_msg);

DECLSPEC_EXPORT int EventContactsChange(LPCSTR robot_wxid, int type, LPCSTR from_wxid, LPCSTR from_name,
                                        LPCSTR msg);

DECLSPEC_EXPORT int EventGroupMemberAdd(LPCSTR robot_wxid, LPCSTR from_wxid, LPCSTR from_name,
                                        LPCSTR json_msg);

DECLSPEC_EXPORT int EventGroupMemberDecrease(LPCSTR robot_wxid, LPCSTR from_wxid, LPCSTR from_name,
                                             LPCSTR json_msg);

DECLSPEC_EXPORT int EventSysMsg(LPCSTR robot_wxid, int type, LPCSTR json_msg);

DECLSPEC_EXPORT void Menu();

#ifdef __cplusplus
}
// #ifdef __cplusplus
#endif

// #ifndef _PLUGIN_EXPORT_H
#endif
